/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_LIGHTONCOMMAND_H
#define DESIGNPATTERN_LIGHTONCOMMAND_H

#include "../Command.h"
#include "../../Pojo/Light.h"

namespace CommandSR {

    class LightOnCommand : public CommandSR::Command {
    public:
        explicit LightOnCommand(const Light &light) : light(light) {}

        void execute() override {
            light.on();
        }

    private:
        Light light;
    };

} // CommandSR

#endif //DESIGNPATTERN_LIGHTONCOMMAND_H
